import static java.lang.System.out;
import java.util.Scanner;
public class Lab6_3 {

	static String arr[][] = new String [26][2];
	public static void main(String[] args) {
	
		CreateModCode();
		//ShowAll();
				Scanner scan = new Scanner(System.in);
				Search(scan.nextLine());
			
		
		
	}
	
	static void CreateModCode(){
		
		String list[] = {
		"A","B","C","D","E","F","G","H","I","J","K"
		,"L","M","N","O","P","Q","R","S","T","U","V","W","X","Y","Z"
		};
		String mod[]  = {
				".-","-...","-.-.",
				"-..",".","..-.",
				"--.","....","..",
				".---","-.-",".-..",
				"--","-.","---",
				".--.","--.-",".-.",
				"...","-","..-",
				"...-",".--","-..-",
				"--.--","-..",
				
		};
		for(int i=0;i<=25;i++){
			
				arr[i][0] = list[i];
				arr[i][1] = mod[i];
				
		}
		
	}// created
	static void Search(String input){
		
		Scanner scan = new Scanner((input).toUpperCase());	 	
		while(scan.hasNext()){
			String str = scan.next();
			 	for(int i=0;i<=(str.length()-1);i++){
			 		 	for(int j=0;j<=25;j++){				 		 		
			 		 		if( (str.substring(i,i+1)).equals(arr[j][0]) ){
			 		 			out.print(arr[j][1]);
			 		 			break;
			 		 			
			 		 		}
			 		 	}
			 	}
			out.println();
		}
	}
	static void ShowAll(){
		for(int i=0;i<=25;i++)			
			out.println(arr[i][0]+" : "+arr[i][1]);								
						}//show

}
